package j2seperf.seri;

import java.io.*;
import java.util.Date;
import java.util.Vector;

public class LoadTest {

	private static Vector vector = new Vector();

	public static void main(String args[]) {

		Stopwatch timer = new Stopwatch().start();
		try {
			InputStream file = new FileInputStream("Out.test");
			InputStream buffer = new BufferedInputStream(file);
			ObjectInputStream in = new ObjectInputStream(buffer);
			vector = (Vector) in.readObject();
			in.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
		timer.stop();
		System.out.println("elapsed = " + timer.getElapsedTime());
		long mem = Runtime.getRuntime().totalMemory()
				- Runtime.getRuntime().freeMemory();
		System.out.println("Mem Consumed = " + mem / 1000 + " kb");
		System.exit(0);
	}
}
